package com.patrol.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.patrol.pojo.Patrol;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface PatrolDao extends BaseMapper<Patrol> {

    @Select("select * from xungeng where riqi like #{riqi}")
    Patrol selectById(String riqi);

    //清空指定表
    @Update("truncate table xungeng")
    void deleteUser();
}
